package com.study.spmongodb.wwj.thread2.char07;

/**
 * @author study
 * @version 1.0
 * @date 2020/12/8 14:15
 */
public class UsePersonThread extends Thread {
    private Person person;

    public UsePersonThread(Person person) {
        this.person = person;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()
                + "  print " + person.toString());
    }
}
